package main

import (
	"github.com/astaxie/beego/migration"
)

// DO NOT MODIFY
type Blog_20200616_164900 struct {
	migration.Migration
}

// DO NOT MODIFY
func init() {
	m := &Blog_20200616_164900{}
	m.Created = "20200616_164900"

	migration.Register("Blog_20200616_164900", m)
}

// Run the migrations
func (m *Blog_20200616_164900) Up() {
	// use m.SQL("CREATE TABLE ...") to make schema update
	m.SQL("CREATE TABLE blog(`id` int(11) NOT NULL AUTO_INCREMENT,`title` varchar(128) NOT NULL,`body` longtext  NOT NULL,PRIMARY KEY (`id`))")
}

// Reverse the migrations
func (m *Blog_20200616_164900) Down() {
	// use m.SQL("DROP TABLE ...") to reverse schema update
	m.SQL("DROP TABLE `blog`")
}
